package com.example.composableexample.navigation

import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController

/**
 * author: LiLiang
 * createTime: 2022/9/30-16:08
 * remark:
 **/


@Composable
fun NavigationWithEnumClassNavigation() {
    val navController = rememberNavController()
    NavHost(navController = navController, startDestination = Screens.SplashScreen.name) {
        composable(Screens.SplashScreen.name) {
            SplashScreen(navController)
        }
        composable(Screens.HomeScreen.name) {
            HomeScreen()
        }
    }

}